package com.wtwd.campus.dao;

import com.wtwd.campus.entity.DeviceAppPublicFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.campus.model.dto.PackageNameAndTypeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2022-12-12
 */
@Mapper
public interface DeviceAppPublicFileMapper extends BaseMapper<DeviceAppPublicFile> {

    List<DeviceAppPublicFile> queryDeviceAppPublicFileByPackageNameAndTypeDto(@Param("list") List<PackageNameAndTypeDto> packageNameAndTypeDtos);

    Integer bachAddPublicFiles(@Param("list") List<DeviceAppPublicFile> addAppPublicFiles);

    boolean insertOrUpdate(@Param("list") List<DeviceAppPublicFile> deviceAppPublicFile);
}
